#ifndef REGISTER_H_
#define REGISTER_H_
/*********************************************************/
class nsMsg;

#include "nsMsg.h"
#include <Poco/DOM/NodeIterator.h>
#include <string>
/*********************************************************/
class Register : public nsMsg
{
private:
	// Friend classes
	friend class nsMsg;

	// Variables
	std::string	hostAddr;			// The socket address of this server ( unicast )
	std::string	ringName;			// The name of the ring
	std::string 	ringAddr;			// The multicast port used to communicate with the rest of the ring

	// Methods
	void deserialize(Poco::XML::NodeIterator&);	// Deserializes an execute job

protected:
public:
	// Control Methods
	virtual std::string serialize() const;		// Serialize the job to an xml string
	virtual void execute();				// Execute the job

	// Construction & Destruction
	Register() {};
	~Register() {};
};
/*********************************************************/
#endif // REGISTER_H_
